package com.mdb.open.trade.domain.po.trade;

/*
* Copyright (C), 2017-2019 澳发科技(MDB)
* FileName: TfAmlLogService.java
* Author:   you.yichao
* Date:     2019-10-16
* History:
* <author>          <time>          <version>          <desc>
* you.yichao         2019-10-16          V1.00             代码生成器初始生成代码
* -----------------------------------------------------------
* 作者姓名           修改时间           版本号            描述
*/


import com.baomidou.mybatisplus.annotation.*;
import com.mdb.bc.api.data.DataObjectBase;
import com.mdb.open.common.enums.trade.status.AmlResultStatusEnum;
import com.mdb.open.common.enums.trade.type.AmlApiTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
* 类描述：
*  aml请求记录实体类
*
* @author you.yichao
* @date 2019-10-16
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tf_aml_log")
public class AmlLog extends DataObjectBase {

    private static final long serialVersionUID = 1L;
    /**
    * 唯一性Id
    */
    @ApiModelProperty(value = "唯一性Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 融资申请单号
    */
    @ApiModelProperty(value = "融资申请单号")
    @TableField("apply_order_no")
    private String applyOrderNo;

    /**
    * 请求序列号
    */
    @ApiModelProperty(value = "请求序列号")
    @TableField("aml_seq_no")
    private String amlSeqNo;

    /**
    * 接口类型
    */
    @ApiModelProperty(value = "接口类型")
    @TableField("api_type")
    private AmlApiTypeEnum apiType;

    /**
    * 0为未命中, 1为疑似
    */
    @ApiModelProperty(value = "0为未命中, 1为疑似")
    @TableField("alert_no")
    private String alertNo;

    /**
    * 案例相似度
    */
    @ApiModelProperty(value = "案例相似度")
    private String similarity;

    /**
    * 请求体
    */
    @ApiModelProperty(value = "请求体")
    private String violations;

    /**
    * 人工确认黑名单
    */
    @ApiModelProperty(value = "人工确认黑名单")
    @TableField("list_names")
    private String listNames;

    /**
    * aml状态
    */
    @ApiModelProperty(value = "aml状态")
    private AmlResultStatusEnum status;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
    * 乐观锁版本号
    */
    @ApiModelProperty(value = "乐观锁版本号")
    @Version
    private Integer version;

    /**
    * 删除标识
    */
    @ApiModelProperty(value = "删除标识")
    @TableLogic
    private boolean deleted;

}
